﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using QuanLyHoSo.App_Code.Common.Utils;

namespace QuanLyHoSo.App_Code.Common.Utils
{
    class ResourcesUtils
    {
        /// <summary>
        /// Lấy key của thông báo trong Message
        /// </summary>
        /// <param name="strMessageKey"></param>
        /// <returns></returns>
        public static string GetMessage(string strMessageKey)
        {
            string strRawMessage = Resources.ProjectResources.ResourceManager.GetString(strMessageKey);
            return string.Format(strRawMessage);
        }

        /// <summary>
        /// 
        /// </summary>
        private static void GetConnectionString()
        {

            //XmlDocument Tai_lieu = Luu_Tru.LT_XML.Doc_XML("../../Cau_Hinh/PathToDB.xml");
            //XmlElement Goc = Tai_lieu.DocumentElement;
            //strCnn = Goc.SelectSingleNode("chuoi").InnerText;
        }
    }
}
